Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Нужно больше функций #3

Merged
merged 4 commits into from
Nov 23, 2024

Conversation

Daniil888-m
Copy link
Contributor

@Daniil888-m Daniil888-m commented Nov 21, 2024

js/functions.js Outdated

checkStr('fff', 3);

function isPalimdrome(string) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isPalindrome


function isPalimdrome(string) {
string = string.replaceAll(' ', '');
const reversedString = string.split('').reverse().join('');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не учтен случай, когда строка содержит символы в разном регистре

@keksobot keksobot merged commit b6737a4 into htmlacademy-javascript:master Nov 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants